package com.chengdu.third.service.Impl;

import com.chengdu.third.dao.UserMangerDao;
import com.chengdu.third.pojo.UserManger;
import com.chengdu.third.service.UserMangerService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author jingbo
 * @create 2021--08--15  14:34
 */
@Service
public class UserMangerServiceImpl implements UserMangerService {

    @Autowired
    private UserMangerDao userMangerDao;

    @Override
    public UserManger checkUser(String username, String password) {
        UserManger user = userMangerDao.queryByUsernameAndPassword(username, password);
        return user;
    }
}
